package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author lin
 * @Date 2021/10/6 22:22
 */
@Data
@Api(tags = "留言板")
public class GuestBookVO {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("留言内容")
    private String content;

    @ApiModelProperty("用户头像")
    private String avatarUrl;

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = PictureUtils.addPrefix(avatarUrl);
    }
}
